import Vue from "vue";


//下面这种方法 会出现短暂白屏，并且布局也的组件会重置，造成选中呗初始化了
Vue.mixin({
  beforeMount() {
    this.$nuxt.setLayout("B");
    // window.$nuxt.setLayout('B');
  },
  computed:{
    layoutName(){
        let layoutNameObj = {
          "A":"纵向菜单",
          "B":"横向布局"
        }
        let layoutName = window.$nuxt.layoutName;
        return layoutName+" " +layoutNameObj[layoutName];
    }
}
});

// export default (content, inject) => {

// };
